tmem: remove dumb check in do_tmem_destroy_pool
authorJulien Grall <julien.grall@linaro.org>
Fri, 4 Apr 2014 09:13:32 +0000 (11:13 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Apr 2014 09:13:32 +0000 (11:13 +0200)
commitac0f56a2fa407e0704fade12630a5a960dedce87
tree19123951fc7c7bca6b0227ce379b13fc3a4cd583
parent2cb8e71744b9c0e0663b8a0419606a73f01562e9
tmem: remove dumb check in do_tmem_destroy_pool

do_tmem_destroy_pool is checking if pools == NULL. But, pools is a fixed
array.

Clang 3.5 will fail to compile xen/common/tmem.c with the following error:
tmem.c:1848:18: error: comparison of array 'client->pools' equal to a null
pointer is always false [-Werror,-Wtautological-pointer-compare]
    if ( client->pools == NULL )

Coverity-ID:1055632

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/common/tmem.c